import request from '@/router/axios';

export const mgetList = (current, size, params) => {
  return request({
    url: '/api/emerMaintain/page',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const mgetDetail = (id) => {
  return request({
    url: '/api/emerMaintain/detail',
    method: 'get',
    params: {
      id
    }
  })
}

export const mremove = (ids) => {
  return request({
    url: '/api/emerMaintain/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}

export const msave = (row) => {
  return request({
    url: '/api/emerMaintain/save',
    method: 'post',
    data: row
  })
}

export const mupdate = (row) => {
  return request({
    url: '/api/emerMaintain/update',
    method: 'post',
    data: row
  })
}

